package com.sxl.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author zhoum
 * @date 2022-03-17 14:15
 */
@Configuration
public class UploadConfig implements WebMvcConfigurer {

    public void addResourceHandlers(ResourceHandlerRegistry registry){
        registry.addResourceHandler("/images/**")
        .addResourceLocations("file:D:\\workspace_idea\\resources-admin-kf3\\src\\main\\resources\\static\\images\\");
    }

}
